package com.jiaming.restaurant.api.trade.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.Value;

import java.time.LocalDateTime;

/**
 * @author dragon
 * @create 2021-02-26 17:11
 */
@Data
public class TradePageVo {
    @JsonProperty("user_id")
    private String userId;
    @JsonProperty("trade_id")
    private  String tradeId;
    @JsonProperty("pay_status")
    private Integer payStatus;
    @JsonProperty("min_amount")
    private Integer minAmount;
    @JsonProperty("max_amount")
    private Integer maxAmount;
    @JsonProperty("rest_name")
    private String restName;
    @JsonProperty("goods_name")
    private String goodsName;
    @JsonProperty("start_time")
    @JsonFormat(pattern = "yyyy-mm-dd")
    private LocalDateTime startTime;
    @JsonProperty("end_time")
    @JsonFormat(pattern = "yyyy-mm-dd")
    private LocalDateTime endTime;
    @JsonProperty("page_size")
    private Long pageSize;
    @JsonProperty("page_num")
    private Long pageNum;
}
